.class public Lcom/zuiapps/suite/utils/security/Digest;
.super Ljava/lang/Object;
.source "Digest.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 13
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static MdigestMD5(Ljava/lang/String;)[B
    .registers 5
    .param p0, "source"    # Ljava/lang/String;

    .prologue
    .line 49
    :try_start_0
    const-string v3, "MD5"

    invoke-static {v3}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;

    move-result-object v2

    .line 50
    .local v2, "thisMD":Ljava/security/MessageDigest;
    const-string v3, "UTF8"

    invoke-virtual {p0, v3}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/security/MessageDigest;->digest([B)[B
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_f} :catch_11

    move-result-object v0

    .line 53
    .end local v2    # "thisMD":Ljava/security/MessageDigest;
    :goto_10
    return-object v0

    .line 52
    :catch_11
    move-exception v1

    .line 53
    .local v1, "e":Ljava/lang/Exception;
    const/4 v0, 0x0

    goto :goto_10
.end method

.method public static MdigestMD5([B)[B
    .registers 5
    .param p0, "source"    # [B

    .prologue
    .line 63
    :try_start_0
    const-string v3, "MD5"

    invoke-static {v3}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;

    move-result-object v2

    .line 64
    .local v2, "thisMD":Ljava/security/MessageDigest;
    invoke-virtual {v2, p0}, Ljava/security/MessageDigest;->digest([B)[B
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_9} :catch_b

    move-result-object v0

    .line 67
    .end local v2    # "thisMD":Ljava/security/MessageDigest;
    :goto_a
    return-object v0

    .line 66
    :catch_b
    move-exception v1

    .line 67
    .local v1, "e":Ljava/lang/Exception;
    const/4 v0, 0x0

    goto :goto_a
.end method

.method public static MdigestSHA(Ljava/lang/String;)[B
    .registers 5
    .param p0, "source"    # Ljava/lang/String;

    .prologue
    .line 21
    :try_start_0
    const-string v3, "SHA"

    invoke-static {v3}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;

    move-result-object v2

    .line 22
    .local v2, "thisMD":Ljava/security/MessageDigest;
    const-string v3, "UTF8"

    invoke-virtual {p0, v3}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/security/MessageDigest;->digest([B)[B
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_f} :catch_11

    move-result-object v0

    .line 25
    .end local v2    # "thisMD":Ljava/security/MessageDigest;
    :goto_10
    return-object v0

    .line 24
    :catch_11
    move-exception v1

    .line 25
    .local v1, "e":Ljava/lang/Exception;
    const/4 v0, 0x0

    goto :goto_10
.end method

.method public static MdigestSHA([B)[B
    .registers 5
    .param p0, "source"    # [B

    .prologue
    .line 35
    :try_start_0
    const-string v3, "SHA"

    invoke-static {v3}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;

    move-result-object v2

    .line 36
    .local v2, "thisMD":Ljava/security/MessageDigest;
    invoke-virtual {v2, p0}, Ljava/security/MessageDigest;->digest([B)[B
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_9} :catch_b

    move-result-object v0

    .line 39
    .end local v2    # "thisMD":Ljava/security/MessageDigest;
    :goto_a
    return-object v0

    .line 38
    :catch_b
    move-exception v1

    .line 39
    .local v1, "e":Ljava/lang/Exception;
    const/4 v0, 0x0

    goto :goto_a
.end method
